package com.byxy.po;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

//评论表

@Table(name = "Comments")
@Data
public class Comments{
    @Column(name = "id", type = MySqlTypeConstant.INT, length = 15, isKey = true, isAutoIncrement = true)
    private Integer id;//评论id
    @Column(name = "comm_content", type = MySqlTypeConstant.TEXT)
    private String comm_content;//评论内容
    @Column(name = "commgive_like", type = MySqlTypeConstant.INT, length = 10)
    private Integer commgive_like;//点赞
    @Column(name = "comm_time", type = MySqlTypeConstant.DATETIME)
    private Date comm_time;//评论时间
    @Column(name = "user_id", type = MySqlTypeConstant.INT, length = 15)
    private Integer user_id;//评论的用户Id
    @Column(name = "blog_id", type = MySqlTypeConstant.INT, length = 10)
    private Integer blog_id;//被评论的博客
    @Column(name = "comm_id", type = MySqlTypeConstant.INT, length = 10)
    private Integer comm_id;//回复评论的评论
}
